﻿using System.Web.Mvc;
using ECG.DAL;

namespace ECG.WebUI.Controllers
{
    public class GoldenTimeListController : Controller
    {
        //
        // GET: /GoldenTimeList/

        public ActionResult Index()
        {
            var listCate = ProductCategoryDb.GetListCateFromGoldenTime();
            return View(listCate);
        }

        public ActionResult ListProductByGoldenTime(string categoryId,string campainId)
        {
            var model = ProductDb.GetProductInGetGoldenTimeByCate(categoryId, campainId);
            return PartialView(model);
        }


    }
}
